
cc.Class({
    extends: cc.Component,

    properties: {
       
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},
    buttonClick(event,customData){
        if(customData == "exit"){
            this.node.destroy();   
        }else if(customData == "create"){
            cc.director.loadScene('gameScene');
        }
    }

    // update (dt) {},
});
